package org.adg.code.common;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

import org.adg.code.model.AdgProps;

public class AdgProperties {
	public AdgProps getProperties()
	{
		Properties props=new Properties();
		InputStream in = getClass().getResourceAsStream("/adg.properties");
		AdgProps adg=new AdgProps();
		try {
			props.load(in);
			adg.setTempsrc(props.getProperty("template_path"));
			adg.setDocsrc(props.getProperty("document_path"));
			adg.setKeyidentifier(props.getProperty("keyword_identifier"));
		}
		catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return adg;
	}

}
